package com.dragon.english_practice_back.reponse;

import lombok.Getter;

@Getter
public enum ReturnCode {
    RC200(200,"成功"),
    RC500(500, "服务器内部错误"),
    RC400(400, "请求参数错误"),
    RC401(401, "authentication failed"),
    RC403(403, "权限不足"),
    RC404(404, "请求资源不存在"),
    RC405(405, "请求方法不支持");

    private final int code;
    private final String message;

    ReturnCode(int code, String message) {
        this.code = code;
        this.message = message;
    }



}
